package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import java.util.Date;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 纪念日提醒参数
 * @author DEREK
 */
@Data
@ApiModel("纪念日提醒更新参数")
public class UserCommemorateUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @NotNull(message = "uid参数缺失")
    @ApiModelProperty(value = "好友ID")
    private Integer uid;

    @NotNull(message = "userId参数缺失")
    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "纪念日名称")
    private String name;

    @NotNull(message = "time参数缺失")
    @ApiModelProperty(value = "纪念日时间")
    private Date time;

    @NotNull(message = "isRemind参数缺失")
    @ApiModelProperty(value = "是否设置提醒 0=否 1=是")
    private Integer isRemind;

    @NotNull(message = "extend参数缺失")
    @ApiModelProperty(value = "扩展字段")
    private String extend;

}
